<@t.html>
<@t.container title="友链管理" icon="link" >
  	       <!--operator-->
  	       <@t.btn_a name="添加友链" icon="plus" href="admin/link/toAdd"/>
  	       <@t.btn_b name="删除友链" icon="trash" onclick="batchDeleteFun('admin/link/delete');" />
  		   <@t.dt>
  		   		 <@t.dtheader>
						 <@t.column title="ID" />
						 <@t.column title="链接名称" />
						 <@t.column title="友情连接类型" />
						 <@t.column title="链接" />
						 <@t.column title="添加日期" />
				</@t.dtheader>
	  			<@t.dtbody>
	  				 <#list page.list as a>
	                     <tr onclick="checkDataGridRow('${a.id}');">
	                      	<td><input name='SelectedID' id="select_${a.id}" value="${a.id}" type="checkbox"></td>
	                        <td>${a.id}</td>
							<td>${a.name}</td>
							<td><@t.code defVal="${a.type}" datas={"1":"文字", "2":"图片"} /></td>
							<td>${a.url}</td>
							<td>${a.date}</td>
	                        <td>
	                        	<@t.btn_b name="删除" size="btn-xs" icon="trash" onclick="batchDeleteFun('admin/link/delete','${a.id}');" />
								<@t.btn_a name="修改" size="btn-xs" icon="pencil" href="admin/link/toAdd?id=${a.id}"/>
							</td>
	                     </tr>
					 </#list>
	  			</@t.dtbody>
  		</@t.dt>
  		<!--pager-->
  		<@t.back_pager objCount=page.totalRow pageSize=page.pageSize pageNum=page.pageNumber pageCount=page.totalPage></@t.back_pager>
  </@t.container>
</@t.html>